<template>
	<view class="content">
		<view class="login-card flexc">
			<image class="pager flex-1" src="@/static/login1.png" mode="heightFix"></image>
			<!-- <view class="flex-1"/> -->
			<view class="primary-button" @click="loginbyphone">
				手机号安全登录
			</view>
			<view class="primary-button-stroke">
				微信一键登录
			</view>
		</view>
		<view class="login-privacy-container flexc">
			<view class="flexr align-center justify-center">
				<radio></radio>
				<view>
					<text>我已阅读并同意</text>
					<text class="link" @click="goPrivacy">《服务条款》</text>
					<text>和</text>
					<text class="link" @click="goPrivacy">《隐私条款》</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script setup>
function loginbyphone() {
	uni.navigateTo({
		url: "/pages/account/loginbyphone",
	})
}
function goPrivacy() {
	uni.navigateTo({
		url: "/pages/account/privacy",
	})
}
</script>

<style lang="scss">
.content {
	padding: 32rpx;
	.login-card {
		background-color: white;
		border-radius: 12rpx;
		flex: 2;
		padding: 40rpx;
		.pager {
			align-self: center;
		}
		.primary-button {
			margin-top: 40rpx;
		}
		.primary-button-stroke {
			margin-top: 40rpx;
		}
	}
	.login-privacy-container {
		flex: 1;
		justify-content: flex-end;
		.link {
			color: $primary-color;
			padding: 10rpx 0;
		}
	}
}
</style>
